#ifndef __IIC__H__
#define __IIC__H__

#include <STC15F2K60S2.H>
#include <intrins.h>

static void I2C_Delay(unsigned char n);
void I2CStart(void);
void I2CStop(void);
void I2CSendByte(unsigned char byt)  ;
unsigned char I2CReceiveByte(void);
unsigned char I2CWaitAck(void);
void I2CSendAck(unsigned char ackbit);


void WriteDac(unsigned char value);
#endif